package index;

public class Timer {
    private long timeRun = 0;
    private long duration = 0;

    public Timer(){
    }
    public void run(){
        timeRun  = System.currentTimeMillis();
    }

    public void stop(){
        duration = System.currentTimeMillis() - timeRun;
    }
    public long getDurationInMiliSec(){
        return duration;
    }
}
